Apparatus and method for improving input/output throughput of memory system

ABSTRACT

Disclosed is a memory system including a plurality of memory dies configured to store data in various storage modes; and a controller coupled with the plurality of memory dies via a plurality of channels and configured to perform a correlation operation on multiple read requests among a plurality of read requests received from a host so that the plurality of memory dies output plural pieces of data corresponding to the plurality of read requests via the plurality of channels in an interleaving way, wherein the controller is configured to determine whether to perform the correlation operation based on the number of read requests, and perform the correlation operation on the multiple read requests which are related to the same storage mode and different channels.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This patent application claims priority under 35 U.S.C. § 119(a) to Korean Patent Application No. 10-2019-0176748, filed on Dec. 27, 2019, the entire disclosure of which is incorporated herein by reference.

BACKGROUND 1. Field

Various embodiments of the present disclosure generally relate to a memory system, and more particularly, to a method and an apparatus for improving an input/output throughput through an interleaving operation on a plurality of memory dies.

2. Description of the Related Art

Recently, a computer environment paradigm has shifted to ubiquitous computing, which enables a computer system to be accessed anytime and everywhere. As a result, the use of portable electronic devices such as mobile phones, digital cameras, notebook computers and the like has increased. Such portable electronic devices typically use or include a memory system that uses or embeds at leaast one memory device, i.e., a data storage device. The data storage device can be used as a main storage device or an auxiliary storage device of a portable electronic device.

In a computing device, unlike a hard disk, a data storage device embodied as a nonvolatile semiconductor memory device is advantageous in that it has excellent stability and durability because it has no mechanical driving part (e.g., a mechanical arm), and has high data access speed and low power consumption. Examples of such a data storage device include a universal serial bus (USB) memory device, a memory card having various interfaces, and a solid state drive (SSD).

SUMMARY

Various embodiments of the present disclosure are directed to a memory system, a data processing system and a method for operating the memory system, which may minimize complexity and degradation in performance of the memory system, maximize use efficiency of a memory device, and rapidly and stably process data with the memory device.

Various embodiments of the present disclosure are directed to a method and an apparatus capable of improving an input/output throughput of a memory system by inputting and outputting data through an interleaving operation on a plurality of memory dies in the memory system.

Various embodiments of the present disclosure are directed to a method and an apparatus capable of improving operational stability and a lifespan of a memory system by utilizing more efficiently a plurality of memory dies in the memory system even though a physical location where data is to be stored for an interleaving operation is not limited in a process of storing data in the plurality of memory dies.

Various embodiments of the present disclosure are directed to a method and an apparatus capable of reducing unnecessary overhead because it is possible to dynamically determine whether to perform or stop a correlation operation by allowing configurations of a memory system and characteristics of the correlation operation to correspond to performance of a data read or write operation performed in the memory system.

Various embodiments of the present disclosure are directed to a method and an apparatus capable of increasing operational efficiency of a memory system based on an address allocation structure where data can be outputted through an interleaving operation on a plurality of memory dies in the memory system while reducing resources used for a correlation operation.

In accordance with an embodiment, a memory system comprising: a plurality of memory dies configured to store data in various storage modes; and a controller coupled with the plurality of memory dies via a plurality of channels and configured to perform a correlation operation on multiple read requests among a plurality of read requests received from a host so that the plurality of memory dies output plural pieces of data corresponding to the plurality of read requests via the plurality of channels in an interleaving way, wherein the controller may be configured to determine whether to perform the correlation operation based on the number of read requests, and perform the correlation operation on the multiple read requests which may be related to the same storage mode and different channels.

The controller may perform the correlation operation when the number of read requests may be greater than or equal to a threshold value, the threshold value may be greater than the number of channels and less than twice the number of channels.

The controller may perform the correlation operation on a first group of read requests for receiving map data and transfers the correlated first group of read requests to corresponding channels among the plurality of channels, and receives the map data from the plurality of channels in the interleaving way.

The controller may perform the correlation operation on a second group of read requests for receiving request data based on the received map data and transfers the correlated second group of read requests to corresponding channels, and receives the request data from the plurality of channels in the interleaving way.

The controller may perform the correlation operation on a first group of read requests for receiving map data from the memory dies and a second group of read requests for receiving request data from the memory dies according to the read request received from the host.

The memory system may further comprise an output buffer configured to store data to be outputted to the host, wherein the controller may be configured to perform the correlation operation when the number of pieces of data may store d in the output buffer may be greater than a set value.

The output buffer may include a queue for outputting data may store d therein according to an input sequence of the may store d data, and the controller determines the set value, based on a first data input/output speed between the host and the memory system and a second data input/output speed between the controller and the plurality of memory dies.

The controller may be configured to skip the correlation operation on a first read request to a (n−1)th read request among the plurality of read requests, and perform the correlation operation on an n-th read request to a last read request among the plurality of read requests, and wherein n may be the number of channels.

The controller may be configured to stop the correlation operation on remaining read requests not yet correlated when the number of remaining read requests may be less than the number of memory dies.

The controller may perform the correlation operation using map data for address translation.

The memory system may further comprise: a memory configured to store the map data; an input buffer configured to store the plurality of read requests; and an output buffer configured to store data to be outputted to the host.

The controller may include: buffer control circuitry configured to monitor states of the input buffer and the output buffer to determine whether to perform the correlation operation; correlation circuitry configured to proceed, stop or skip the correlation operation on the plurality of read requests based on the number of read requests received, and to transfer a correlated read request earlier than an uncorrelated read request among the plurality of read requests; and operation control circuitry configured to perform the address translation on the plurality of read requests according to a transferred sequence of the plurality of read requests, and to transfer the plurality of read requests to the plurality of memory dies via the plurality of channels.

The plurality of memory dies may store data in a single-level cell (SLC) mode, a multi-level cell (MLC) mode, a triple-level cell (TLC) mode or a quad-level cell (QLC) mode.

In accordance with an embodiment, an operating method of a memory system, the operating method comprising: receiving a plurality of read requests from a host; determining whether to perform a correlation operation on the plurality of read requests based on the number of read requests; selectively performing the correlation operation on the plurality of read requests based on a result of the determining operation and transferring the correlated read requests to a plurality of memory dies through a plurality of channels; receiving data corresponding to the correlated read requests from the plurality of memory dies via the plurality of channels in an interleaving way; and outputting the received data to the host, wherein the correlated read requests include multiple read requests which may be related to the same storage mode and different channels among the plurality of read requests.

The determining of whether to perform the correlation operation comprises performing the correlation operation when the number of read requests may be greater than or equal to a threshold value, wherein the threshold value may be greater than the number of channels and less than twice the number of channels.

The performing of the correlation operation may include: performing a first correlation operation on a first group of read requests for receiving map data from the plurality of memory dies; transferring the correlated first group of read requests to corresponding channels among the plurality of channels; receiving the map data from corresponding memory dies among the plurality of memory dies in the interleaving way; performing a second correlation operation on a second group of read requests for receiving request data from the plurality of memory dies, based on the received map data; and transferring the correlated second group of read requests to corresponding channels among the plurality channels, and receiving the request data from corresponding memory dies among the plurality of memory dies in the interleaving way.

The first correlation operation may be performed when the number of pieces of data may store d in the output buffer, to be outputted to the host, may be greater than a set value.

The set value may be determined based on a first data input/output speed between the host and the memory system and a second data input/output speed between the controller and the plurality of memory dies.

The performing the correlation operation may include: skipping the correlation operation when the number of read requests received may be less than the number of memory dies.

The performing the correlation operation may include: skipping the correlation operation on a first read request to a (n−1)th read request among the plurality of read requests; and performing the correlation operation on a n-th read request to a last read request among the plurality of read requests, wherein n may be the number of channels.

The performing the correlation operation further may include: stopping the correlation operation on remaining read requests not yet correlated when the number of remaining read requests may be less than the number of memory dies.

The performing the correlation operation may include: proceeding, stopping or skipping the correlation operation to the plurality of read requests based on the number of read requests;

transferring a correlated read request earlier than an uncorrelated read request among the plurality of read requests; and storing a correlation rate of the correlation operation to determine at least one threshold used as a reference for determining whether to proceed, stop or skip the correlation based on the correlation rate, the number of channels and the number of memory dies.

The plurality of memory dies may store data in a single-level cell (SLC) mode, a multi-level cell (MLC) mode, a triple-level cell (TLC) mode or a quad-level cell (QLC) mode.

In accordance with an embodiment, a memory system comprising: a memory system comprising: a plurality of memory dies including multiple storage blocks; a controller; and a plurality of channels coupled between the controller and the plurality of memory dies, wherein the controller may be suitable for: receiving a plurality of read requests from a host; determining whether to perform a correlation operation on at least some of the plurality of read requests based on the number of read requests and an order in which the read requests may be received; when it may be determined that the correlation operation may be to be performed, performing the correlation operation on select read requests, among the plurality of read requests, to generate correlated read requests; and transferring the correlated read requests to the same storage block among the multiple storage blocks through different channels.

These technical features of the present disclosure are not limited to the embodiments described above, and other technical features not described herein will be apparently understood by those skilled in the art to which the present disclosure pertains from the following detailed description.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a memory system according to an embodiment of the disclosure.

FIG. 2 illustrates a data processing system including a memory system according to an embodiment of the disclosure.

FIG. 3 illustrates a controller in a memory system according to an embodiment of the disclosure.

FIG. 4 illustrates a memory device in a memory system according to an embodiment of the invention.

FIGS. 5A to 5C illustrate characteristics of a correlation operation performed by a controller according to an embodiment of the invention.

FIG. 6 illustrates a controller according to an embodiment of the invention.

FIG. 7 illustrates a process for correlating plural read requests in a controller according to an embodiment of the disclosure.

FIG. 8 illustrates a first method for controlling an operation in a memory system according to an embodiment of the disclosure.

FIG. 9 illustrates a second method for controlling an operation in a memory system according to an embodiment of the disclosure.

FIG. 10 illustrates a result of correlation process performed by a controller according to an embodiment of the disclosure.

FIG. 11 illustrates a first method for operating a memory system according to an embodiment of the disclosure.

FIGS. 12A and 12B illustrate operating methods of a memory system according to an embodiment of the disclosure.

FIGS. 13A to 13C illustrate specific examples of a correlation operation described in FIGS. 12A and 12B.

DETAILED DESCRIPTION

Hereinafter, various embodiments of the present disclosure are described below in detail with reference to the accompanying drawings. The following description focuses on features and aspects of the present invention; other description including description of well-known technical material is omitted so as not to obscure the subject matter of the present disclosure.

Various examples of the disclosure are described below in more detail with reference to the accompanying drawings. Aspects and features of the present invention, however, may be embodied in different ways to form other embodiments, including variations of any of the disclosed embodiments. Thus, the invention is not to be construed as being limited to the embodiments set forth herein. Rather, the described embodiments are provided so that this disclosure is thorough and complete and fully conveys the disclosure to those skilled in the art to which this invention pertains. Throughout the disclosure, like reference numerals refer to like parts throughout the various figures and examples of the disclosure. It is noted that reference to “an embodiment,” “another embodiment” or the like does not necessarily mean only one embodiment, and different references to any such phrase are not necessarily to the same embodiment(s).

It will be understood that, although the terms “first”, “second”, “third”, and so on may be used herein to identify various elements, these elements are not limited by these terms. These terms are used to distinguish one element from another element that otherwise have the same or similar names. Thus, a first element in one instance could be termed a second or third element in another instance without indicating any change in the element itself.

The drawings are not necessarily to scale and, in some instances, proportions may have been exaggerated in order to clearly illustrate features of the embodiments. When an element is referred to as being connected or coupled to another element, it should be understood that the former can be directly connected or coupled to the latter, or electrically connected or coupled to the latter via one or more intervening elements therebetween. In addition, it will also be understood that when an element is referred to as being “between” two elements, it may be the only element between the two elements, or one or more intervening elements may also be present.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, singular forms are intended to include the plural forms and vice versa, unless the context clearly indicates otherwise. Similarly, the indefinite articles “a” and “an” mean one or more, unless it is clear from the language or context that only one is intended.

It will be further understood that the terms “comprises,” “comprising,” “includes,” and “including” when used in this specification, specify the presence of the stated elements and do not preclude the presence or addition of one or more other elements. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.

Unless otherwise defined, all terms including technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention belongs in view of the disclosure. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the disclosure and the relevant art, and not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the invention. The invention may be practiced without some or all of these specific details. In other instances, well-known process structures and/or processes have not been described in detail in order not to unnecessarily obscure the invention.

It is also noted, that in some instances, as would be apparent to those skilled in the relevant art, a feature or element described in connection with one embodiment may be used singly or in combination with other features or elements of another embodiment, unless otherwise specifically indicated.

An embodiment of the disclosure may provide a memory system, a data processing system, and an operation process or a method, which may quickly and reliably process data into a memory device by reducing operational complexity and performance degradation of the memory system, thereby enhancing usage efficiency of the memory device.

In addition, an embodiment of the disclosure may provide a method and an apparatus for inputting and outputting plural pieces of data to and from a plurality of memory dies in a memory system via an interleaving way to improve data input/output performance (e.g., I/O throughput) of the memory system.

Further, an embodiment of the disclosure may provide a memory system in which an interleaving operation is not limited to a physical location in which a piece of data is to be stored, in a process of storing the piece of data in a plurality of memory dies, thereby effectively utilizing the plurality of memory dies in the memory system so that an operation stability and a lifespan of a memory system may be improved.

In addition, an embodiment of the disclosure may provide an apparatus and a method for dynamically determining whether to proceed or stop a correlation operation on plural requests based on a configuration of a memory system and/or characteristics of the correlation operation, which influences an operation such as reading or writing data performed in the memory system, so that overhead in operations performed in the memory system may be reduced.

In addition, an embodiment of the disclosure may provide a memory system including an address allocation scheme which reduces resources used for the correlation operation and supports an interleaving operation to a plurality of memory dies in the memory system, thereby increasing operational efficiency of the memory system.

In an embodiment, a memory system can include a plurality of memory dies; and a controller coupled with the plurality of memory dies via a plurality of channels and configured to perform a correlation operation on at least some read requests among a plurality of read requests inputted from an external device so that the plurality of memory dies outputs plural pieces of data corresponding to the plurality of read requests via the plurality of channels in an interleaving way. The controller may be configured to determine when to perform the correlation operation based on the number of the plurality of read requests.

The controller may be configured to perform the correlation operation when the number of pieces of data, stored in an output buffer before being outputted to the external device, is greater than a threshold.

The output buffer may include a queue capable of outputting stored data according to an input sequence of the stored data. The controller may be configured to determine the threshold based on a first data input/output speed between the external device and the memory system and a second data input/output speed between the controller and the plurality of memory dies.

The controller may be configured to skip the correlation operation when the number of read requests is less than the number of memory dies.

The controller may be configured to skip the correlation operation on the first read request to a (n−1)th read request, and perform the correlation operation on an n-th read request to a last read request. Herein, ‘n’ may be the number of the plurality of channels.

The controller may be configured to halt or stop the correlation operation on remaining read requests not yet correlated when the number of remaining read requests is less than the number of memory dies.

The controller may be configured to allocate a physical location in the plurality of memory dies for programming each piece of data, regardless of a logical address associated with the piece of data. The controller may be configured to perform the correlation operation based on map data.

The controller may be configured to allocate a physical location in the plurality of memory dies, based on the number dies and a logical address associated with each piece of data. The controller may be configured to perform the correlation operation based on logical addresses corresponding to the plurality of read requests.

The memory system may further include a memory for storing map data; an input buffer for storing the plurality of read requests; and an output buffer for storing the plural pieces of data outputted to the external device.

The controller may include buffer control circuitry configured to monitor states of the input buffer and the output buffer to determine whether to perform the correlation operation; correlation circuitry configured to proceed, stop or skip the correlation operation on the plurality of read requests based on the number of read requests received, and to transfer a correlated read request earlier than an uncorrelated read request among the plurality of read requests; and operation control circuitry configured to perform an address translation to the plurality of read requests according to a transferred sequence of the plurality of read requests, and to transfer the plurality of read requests to the plurality of memory dies via the plurality of channels.

The controller may be configured to store a correlation rate of the correlation operation, and to determine at least one threshold used as a reference for determining whether to proceed, stop or skip the correlation based on the correlation rate, the number of channels and the number of memory dies.

In another embodiment, a method for operating a memory system may include receiving a plurality of read requests inputted from an external device; determining whether to perform a correlation operation on the plurality of read requests based on the number of read requests received; performing the correlation operation on some read requests based on a determination result; performing an address translation for a correlated read request to transfer the correlated read request to a plurality of memory dies via a plurality of channels; receiving data corresponding to the correlated read request from the plurality of memory dies via the plurality of channels in an interleaving way; and outputting the data to the external device.

The method may further include performing the address translation for an uncorrelated read request to transfer the uncorrelated read request to a plurality of memory dies via a plurality of channels; and receiving other data corresponding to the uncorrelated read request from the plurality of memory dies to output the other data to the external device.

The determining whether to perform the correlation operation may include determining when the number of pieces of data, stored in an output buffer before outputted to the external device, is greater than a threshold. The threshold may be determined based on a first data input/output speed between the external device and the memory system and a second data input/output speed between the controller and the plurality of memory dies.

The performing the correlation operation may include skipping the correlation operation when the number of read requests received is less than the number of memory dies.

The performing the correlation operation may include skipping the correlation operation on the first read request to a (n−1)th read request; and performing the correlation operation on n-th read request to the last read request. Herein, ‘n’ is the number of channels. .

The performing the correlation operation may further include halting or stopping the correlation operation on remaining read requests not yet correlated when the number of remaining read requests is less than the number of memory dies.

The method may further include allocating a physical location in the plurality of memory dies for programming each piece of data, regardless of a logical address associated with the piece of data. The correlation operation may be performed based on map data.

The method may further include allocating a physical location in the plurality of memory dies, based on the number of dies and a logical address associated with each piece of data. The correlation operation may be performed based on logical addresses corresponding to the plurality of read requests.

The performing the correlation operation may include proceeding, stopping or skipping the correlation operation to the plurality of read requests based on the number of read requests; transferring a correlated read request earlier than an uncorrelated read request; and storing a correlation rate of the correlation operation to determine at least one threshold used as a reference for determining whether to proceed, stop or skip the correlation based on the correlation rate, the number of channels and the number of memory dies.

In another embodiment, a memory system may include a plurality of memory dies, and a controller coupled with the plurality of memory dies via the plurality of channels. The controller may be configured to receive a plurality of read requests from a host, correlate at least one pair of read requests selected from among the plurality of read requests. Two memory dies corresponding to the pair may be coupled to the controller via different channels. The controller may be further configured to transmit the pair of read requests to the corresponding two memory dies; and provide, to the host, data corresponding to the pair of read requests from the corresponding two memory dies. The correlating may be performed based on a correlating rate, the number of channels, the number of memory dies and the number of read requests received.

Embodiments of the disclosure are described in detail below with reference to the accompanying drawings, wherein like numbers reference like elements.

FIG. 1 illustrates a memory system 110 according to an embodiment of the disclosure. For example, in a computing device or a mobile device embedded with the memory system 110, a host (e.g., host 102 of FIG. 2) may be engaged with the memory system 110 for data input and output (I/O) operation. The host is a kind of external device operatively engaged with the memory system 110.

Referring to FIG. 1, the memory system 110 may include a controller 130 and a memory device 150. The controller 130 may output data, which is requested by the host 102 and delivered from the memory device 150, or store data inputted from the host 102 in the memory device 150. The memory device 150 may include a plurality of non-volatile memory cells, each capable of storing data. Here, an internal structure and/or configuration of the memory device 150 may vary depending on the applicable specification or desired performance of the memory device 150, which, in turn, may be based on the purpose(s) for which the memory system 110 is used or the requirement(s) of the host 102.

The controller 130 and the memory device 150 may be coupled through a plurality of data paths. For example, the memory device 150 may include a plurality of memory dies 240A, 240B, 240C, 240D, which may be coupled with the controller 130 through different data paths. The first memory die 240A and the controller 130 are coupled through a first channel (CH1) and a first way (W1) CH1W1, and the second memory die 240B and the controller 130 are coupled through the first channel (CH1) and a second way (W2) CH1W2. The first memory die 240A and the second memory die 240B may share the first channel CH1, but the first memory die 240A and the second memory die 240B may use different ways W1, W2 independently. In addition, the third memory die 240C and the controller 130 are coupled through the second channel (CH2) and the first way (W1) CH2W1, and the fourth memory die 240D and the controller 130 are coupled via the second channel (CH2) and the second way (W2) CH2W2. The number of channels and/or ways constituting the data paths between the controller 130 and the memory device 150 may vary depending on the number of memory dies in the memory device 150. The number of channels and ways coupling the memory dies 240A, 240B, 240C, 240D to the controller 130 may be different, according to the purpose(s) of the memory system 110 or requirement(s) of the host 102.

The plurality of memory dies 240A to 240D may be configured as different modules and independently coupled with the controller 130 via different data paths. When multiple data paths are used for data exchange, the plurality of memory dies 240A to 240D and the controller 130 may use an interleaving scheme via plural data paths for exchanging data to increase speed of data transfer between the memory device 150 and the controller 130.

For the interleaving scheme to enhance the speed of data transfer between the memory device 150 and the controller 130, data to be stored should be distributed over several modules rather than in a single module. In executing an interleaving scheme, a memory system may use an address limitation structure or an address scheme for distributing and storing plural pieces of new data over and in a plurality of modules of the memory device 150. For example, when programming four pieces of data, the conventional memory system stores four pieces of data in four memory dies individually. Here, the number of pieces of data may refer to the number of data units which may be stored together by a single program operation or a single write operation. For example, when a program operation (or a write operation) with a unit of page is performed, four pieces of data may include an amount of data programmed in four pages.

In order to increase operational efficiency of program and read operations and enhance distributed storage, a memory system may employ an address limitation structure. In the address limitation structure, when four pieces of data are programmed in four memory dies, the same physical location in each memory die is allocated. For example, when storing four pieces of data in the four memory dies, each of four pieces of data is individually stored in the fifth physical location of a respective one of the four memory dies. Thereafter, when eight pieces of data are programmed, eight pieces of data may be stored in the sixth and seventh physical locations of each memory die. Here, the physical location may indicate a block or a page in a memory die.

When storing five pieces of data in four memory dies in a memory system with the address limitation structure, two pieces of data may be stored in first and second physical locations of the same memory die, and three pieces of data may be individually stored in a first physical location of the other three memory dies respectively. In the memory system with the address limitation structure, three pieces of dummy data are individually written in a second physical location of the remaining three memory dies because a piece of data inputted along with the next program request cannot be written subsequently in the second physical location of the other three memory dies.

When a memory system has an address limitation structure for an interleaving operation, operational efficiency may be degraded because pieces of dummy data may need to be programmed whenever a program operation with odd pieces of data is performed. In addition, because each memory die does not always have the same operation state (in terms of health, wear, etc.), the memory system might have to independently perform an additional operation to compensate for each memory die condition, which may increase overhead.

The memory system 110, according to an embodiment of the disclosure, may adopt a full sync interleaving structure which is capable of supporting interleaving operations between the controller 130 and the memory device 150 without an address limitation structure. The full sync interleaving structure does not have an address limitation for storing data at the same location in each of a plurality of memory dies 240A to 240D in the memory device 150. The controller 130 may distribute pieces of data to be programmed according to an operation condition and an operation state of each memory die. In doing so, the pieces of data need not be evenly distributed to each memory die. For example, if one of the four memory dies 240A to 240D (e.g., memory die 240A) cannot program a piece of data immediately due to an internal operation, the controller 130 may transfer plural pieces of data into three other memory dies (e.g., 240B, 240C, 240D). The controller 130 may distribute plural pieces of data over the plurality of memory dies 240A to 240D to increase efficiency of data transmission and reduce an operation margin of a program operation, but a strict rule such as the address limitation structure does not apply. In addition, in the memory system 110 according to an embodiment, it is unnecessary to program dummy data, unlike in a memory system with the address limitation structure.

After the controller 130 transfers a piece of data to the memory device 150 and the piece of data is programmed in the memory device 150, the controller 130 may generate or update map information associating a logical address with a physical location (i.e., a physical address) corresponding to the data. In addition, the controller 130 may store updated map information in the memory device 150.

Because the memory system 110 does not adopt the address limitation structure as described above, it might be hard to ensure that data transmission between the controller 130 and the memory device 150 in a process of reading and outputting plural pieces of data requested by a host (or an external device) is performed in an interleaving way (i.e., by an interleaving scheme). Accordingly, the controller 130 may include correlation circuitry 194 for correlating a plurality of read operations requested by the host so that plural pieces of data outputted from the memory device 150 by the plurality of read operations may be transmitted in the interleaving way.

In FIG. 1, the controller 130 may include the correlation circuitry 194, operation control circuitry 196 and buffer control circuitry 198. As used in the disclosure, the term ‘circuitry’ can refer to any and all of the following: (a) hardware-only circuit implementations (such as implementations in only analog and/or digital circuitry) and (b) to combinations of circuits and software (and/or firmware), such as (as applicable): (i) to a combination of processor(s) or (ii) to portions of processor(s)/software (including digital signal processor(s)), software, and memory(ies) that work together to cause an apparatus, such as a mobile phone or server, to perform various functions) and (c) to circuits, such as a microprocessor(s) or a portion of a microprocessor(s), that require software or firmware for operation, even if the software or firmware is not physically present. This definition of ‘circuitry’ applies to all uses of this term in this application, including in any claims. As a further example, as used in this application, the term “circuitry” would also cover an implementation of merely a processor (or multiple processors) or portion of a processor and its (or their) accompanying software and/or firmware. The term “circuitry” would also cover, for example and if applicable to a particular claim element, an integrated circuit for a storage device.

The buffer control circuitry 198 may control an input buffer and an output buffer (e.g., an input buffer 184 and an output buffer 186 of FIG. 6). The input buffer is configured to temporarily store a command or a piece of data which is inputted from the host. The output buffer is configured to temporarily store a piece of data corresponding to a command inputted from the host before the piece of data is transmitted to the host. For example, when the host sends read requests (or read commands) for reading plural pieces of data corresponding to 20 logical addresses to the memory system 110, the controller 130 receives the plural pieces of data corresponding to 20 logical addresses from the memory device 150, temporarily stores the plural pieces of data in the output buffer, and outputs the plural pieces of data to the host. The buffer control circuitry 198 may monitor or recognize how many pieces of data are temporarily stored in the output buffer before outputted to the host.

The operation control circuitry 196 may check a physical location in the memory device 150, which corresponds to a logical address, and read a piece of data stored in the physical location. In response to a read request (or a read command) along with a logical address from an input buffer, the operation control circuitry 196 may translate the logical address into a physical address based on the map information, and request a piece of data, stored in nonvolatile memory cells indicated by the physical address, to the memory device 150. The physical address may indicate a specific physical location in the plurality of memory dies 240A to 240D in the memory device 150. When the operation control circuitry 196 handles plural read requests according to an order or a sequence of the plural read request delivered by the buffer control circuitry 198, physical addresses corresponding to the plural read requests may be randomly distributed over the plurality of memory dies 240A to 240D. For example, three consecutive physical addresses may indicate different locations in the same memory die, or four consecutive physical addresses may indicate different locations in different memory dies. In this situation, the data transmission between the controller 130 and the plurality of memory dies 240A to 240D may be sometimes performed in the interleaving way, but it is often performed to exchange data between the controller 130 and the plurality of memory dies 240A to 240D randomly, in a non-interleaving way.

When the buffer control circuitry 198 determines that there are pieces of data to be outputted to the host in the output buffer, plural read requests (or plural read commands) and plural logical addresses from the host may be transmitted to the correlation circuitry 194. The correlation circuitry 194 may check map information regarding the plural logical addresses corresponding to the plural read requests from the buffer control circuitry 198 to correlate the plural read requests, so that the operation control circuitry 196 may perform plural read operations corresponding to the plural read requests in the interleaving way, i.e., according to the interleaving scheme, e.g., plural pieces of data are transferred in the interleaving way between the controller 130 and the plurality of memory dies 240A to 240D. Herein, a correlation operation performed by the correlation circuitry 194 may support parallel processing and distributed computing between the controller 130 and the plurality of memory dies 240A to 240D. In a circumstance where a single data path is shared by plural components, the plural components may interleave their signals or their data in the single data path. Further, in a circumstance where plural data paths are used by a single component, the single component may distribute plural signals or plural data over the plural data paths. The correlation operation may enable some of a plurality of read requests to be delivered into the plurality of memory dies in parallel through the plurality of channels, so that plural pieces of data corresponding to the plurality of read requests are outputted in parallel from the plurality of memory dies via the plurality of channels. The correlation operation for a plurality of read requests may include that plural pieces of data requested to the memory dies 240A to 240D may be transferred from the memory device 150 to the controller 130 in the interleaving way.

It is assumed that a host sends requests for 20 pieces of data stored in the memory system 110. The controller 130 may receive the 20 read requests for the 20 pieces of data, which are inputted from the host. The buffer control circuitry 198 may transmit the 20 read requests for the 20 pieces of data to the correlation circuitry 194. The correlation circuitry 194 tries to correlate the 20 read requests so that at least some among the 20 pieces of data are outputted in the interleaving way. For example, the correlation circuitry 194 may check a physical address corresponding to a first logical address inputted along with a first read request among the 20 read requests, and then recognize that first data corresponding to the first logical address is stored in the first memory die 240A. The correlation circuitry 194 may check a physical address corresponding to a second logical address inputted along with a second read request among the 20 read requests. When second data corresponding to the second read request is stored in the third memory die 240C or the fourth memory die 240D, an interleaving operation between the first and second read requests may be expected because the first data and the second data respectively corresponding to the first and second read requests may be transmitted via different channels CH1, CH2. Thus, the first and second read requests may be correlated by the correlation circuitry 194, and correlated read requests may be transmitted to the operation control circuitry 196.

However, if the second data is stored in the first memory die 240A or the second memory die 240B, the interleaving operation between the first and second read requests may not be expected because the first data and the second data respectively corresponding to the first and second read requests may be transmitted via the same channel CH1. In this case, the correlation circuitry 194 may not pair or correlate the first and second read requests. Then, the correlation circuitry 194 may check a physical address for a third read request. When third data corresponding to the third read request is stored in the third memory die 240C or the fourth memory die 240D, the interleaving operation between the first request and the third request may be expected because the first data and the third data respectively corresponding to the first and third read requests may be transmitted via different channels CH1, CH2. The correlation circuitry 194 may correlate the first read request and the third read request and transmit correlated read request to the operation control circuitry 196. The third read request may be transmitted earlier than the second read request.

However, if the third data is stored in the first memory die 240A or the second memory die 240B, the interleaving operation between the first request and the third request may not be expected because the first and third data are transmitted via the same channel.

Then, the correlation circuitry 194 may check a physical address for a fourth read request.

As described above, the correlation circuitry 194 may check a physical location where data corresponding to a read request is stored, correlate some of read requests when an interleaving operation between the read requests may be expected, and transfer correlated read requests to the operation control circuitry 196. For the correlation operation, the correlation circuitry 194 may refer to map information stored in the controller 130 or loaded in a memory (or a buffer) of the controller 130.

The correlation operation with respect to a plurality of read requests may adversely affect data input/output performance such as I/O throughput of the memory system 110 because the correlation operation may cause a delay. Accordingly, the correlation circuitry 194 may not perform the correlation operation for all read requests from the host. For example, the buffer control circuitry 198 may check pieces of data in the output buffer, which are outputted to the host, to determine whether the data input/output performance of the memory system 110 would not be degraded if the correlation circuitry 194 performs the correlation operation to the plurality of read requests. The correlation circuitry 194 may perform the correlation operation regarding the plurality of read requests in a situation where it is determined that the correlation operation has no or little influence on I/O throughput.

In addition, the correlation circuitry 194 may not correlate all of the plurality of read requests from the buffer control circuitry 198. When the interleaving operation may be expected considering the physical locations of the pieces of data corresponding to the plurality of read requests, the correlation circuitry 194 may perform the correlation operation. But, other read requests, received after these read requests, are correlated by the correlation circuitry 194 may be transferred uncorrelated to the operation control circuitry 196.

In response to an operation environment, the controller 130 may correlate at least some of the plurality of read requests from the host, so that plural pieces of data are transferred in the interleaving way between the memory device 150 and the controller 130. In addition, the memory system 110 does not have to adopt an address limitation structure for exchanging signals or data in the interleaving way within the memory system 110. Plural pieces of data may be distributed and stored based on operation environment and operation states of the plurality of memory dies 240A to 240D in the memory device 150. The controller 130 may attempt to correlate read requests for reading plural pieces of data stored in the plurality of memory dies 240A to 240D. Because the memory system 110 does not have to use the address limitation structure, the plurality of memory dies 240A to 240D may be operated more efficiently, and lifespans of the plurality of memory dies 240A to 240D may be improved. On the other hand, since data transfer between the plurality of memory dies 240A to 240D and the controller 130 may be performed in the interleaving way, the memory system 110 can avoid deteriorating the data input/output performance (e.g., I/O throughput) thereof.

FIG. 2 illustrates a data processing system 100 including a memory system according to an embodiment of the disclosure. Referring to FIG. 2, the data processing system 100 may include a host 102 engaged or operably coupled with a memory system 110.

The host 102 may include, for example, any of a variety of portable electronic devices, such as a mobile phone, an MP3 player and a laptop computer, or an electronic device such as a desktop computer, a game player, a television (TV), a projector and the like.

The host 102 also includes at least one operating system (OS), which can generally manage, and control, functions and operations performed in the host 102. The OS may provide interoperability between the host 102 engaged with the memory system 110 and the user of the memory system 110. The OS may support functions and operations corresponding to user's requests. By way of example but not limitation, the OS may include a general operating system and a mobile operating system according to mobility of the host 102. The general operating system may be split into a personal operating system and an enterprise operating system according to system requirements or user's environment. The personal operating system, including Windows and Chrome, may be subject to support services for general purposes. The enterprise operating systems may be specialized for securing and supporting high performance, including Windows servers, Linux and Unix. Further, the mobile operating system may include an Android, an iOS and a Windows mobile. The mobile operating system may be subject to support services or functions for mobility (e.g., a power saving function). The host 102 may include a plurality of operating systems. The host 102 may execute multiple operating systems in cooperation with the memory system 110, corresponding to a user's request. The host 102 may transmit a plurality of commands corresponding to the user's requests into the memory system 110, thereby performing operations corresponding to commands within the memory system 110. Handling plural commands in the memory system 110 is described below with reference to FIGS. 3 and 4.

The memory system 110 may perform a specific function or operation in response to a request from the host 102 and, particularly, may store data to be accessed by the host 102. The memory system 110 may be used as a main memory system or an auxiliary memory system of the host 102. The memory system 110 may be implemented with any of various types of storage devices, which may be electrically coupled with the host 102, according to a protocol of a host interface. Non-limiting examples of suitable storage devices include a solid state drive (SSD), a multimedia card (MMC), an embedded MMC (eMMC), a reduced size MMC (RS-MMC), a micro-MMC, a secure digital (SD) card, a mini-SD, a micro-SD, a universal serial bus (USB) storage device, a universal flash storage (UFS) device, a compact flash (CF) card, a smart media (SM) card and a memory stick.

The storage devices for the memory system 110 may be implemented with a volatile memory device, for example, a dynamic random access memory (DRAM) or a static RAM (SRAM), and/or a nonvolatile memory device such as a read only memory (ROM), a mask ROM (MROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a ferroelectric RAM (FRAM), a phase-change RAM (PRAM), a magneto-resistive RAM (MRAM), a resistive RAM (RRAM or ReRAM) or a flash memory.

The memory system 110 may include a controller 130 and a memory device 150. The memory device 150 may store data to be accessed by the host 102. The controller 130 may control storage of data in the memory device 150.

The controller 130 and the memory device 150 may be integrated into a single semiconductor device, which may be included in any of the various types of memory systems as exemplified above.

By way of example but not limitation, the controller 130 and the memory device 150 may be integrated into a single semiconductor device. The controller 130 and memory device 150 may be so integrated to form an SSD for improving operation speed. When the memory system 110 is used as an SSD, the operating speed of the host 102 connected to the memory system 110 can be improved more than that of the host 102 connected with a hard disk. In another embodiment, the controller 130 and the memory device 150 may be integrated into one semiconductor device to form a memory card, such as a PC card (PCMCIA), a compact flash card (CF), a smart media card (e.g., SM, SMC), a memory stick, a multimedia card (e.g., MMC, RS-MMC, MMCmicro), a secure digital (SD) card (e.g., SD, miniSD, microSD, SDHC), or a universal flash memory.

The memory system 110 may be configured as a part of, for example, a computer, an ultra-mobile PC (UMPC), a workstation, a net-book, a personal digital assistant (PDA), a portable computer, a web tablet, a tablet computer, a wireless phone, a mobile phone, a smart phone, an e-book, a portable multimedia player (PMP), a portable game player, a navigation system, a black box, a digital camera, a digital multimedia broadcasting (DMB) player, a 3-dimensional (3D) television, a smart television, a digital audio recorder, a digital audio player, a digital picture recorder, a digital picture player, a digital video recorder, a digital video player, a storage configuring a data center, a device capable of transmitting and receiving information under a wireless environment, one of various electronic devices configuring a home network, one of various electronic devices configuring a computer network, one of various electronic devices configuring a telematics network, a radio frequency identification (RFID) device, or one of various components configuring a computing system.

The memory device 150 may be a nonvolatile memory device and may retain data stored therein even while electrical power is not supplied. The memory device 150 may store data provided from the host 102 through a write operation, while providing data stored therein to the host 102 through a read operation. The memory device 150 may include a plurality of memory blocks 152, 154, 156, each of which may include a plurality of pages. Each of the plurality of pages may include a plurality of memory cells to which a plurality of word lines (WL) are electrically coupled. The memory device 150 also includes a plurality of memory dies, each of which includes a plurality of planes, each of which includes memory blocks, among the plurality of memory blocks 152, 154, 156. In addition, the memory device 150 may be a non-volatile memory device, for example a flash memory, wherein the flash memory may be a three-dimensional stack structure.

The controller 130 may control overall operations of the memory device 150, such as read, write, program and erase operations. For example, the controller 130 may control the memory device 150 in response to a request from the host 102. The controller 130 may provide the data, read from the memory device 150, with the host 102. The controller 130 may store the data, provided by the host 102, into the memory device 150.

The controller 130 may include a host interface (I/F) 132, a processor 134, error correction code (ECC) circuitry 138, a power management unit (PMU) 140, a memory interface (I/F) 142 and a memory 144, all operatively coupled via an internal bus.

The host interface 132 may process commands and data provided from the host 102, and may communicate with the host 102 through at least one of various interface protocols, such as universal serial bus (USB), multimedia card (MMC), peripheral component interconnect-express (PCI-e or PCIe), small computer system interface (SCSI), serial-attached SCSI (SAS), serial advanced technology attachment (SATA), parallel advanced technology attachment (PATA), small computer system interface (SCSI), enhanced small disk interface (ESDI) and integrated drive electronics (IDE). In accordance with an embodiment, the host interface 132 is a component for exchanging data with the host 102, which may be implemented through firmware called a host interface layer (HIL).

The ECC circuitry 138 may correct error bits of the data to be processed in (e.g., outputted from) the memory device 150, which may include an ECC encoder and an ECC decoder. Here, the ECC encoder may perform error correction encoding of data to be programmed in the memory device 150 to generate encoded data into which a parity bit is added and store the encoded data in memory device 150. The ECC decoder may detect and correct errors contained in a data read from the memory device 150 when the controller 130 reads the data stored in the memory device 150. In other words, after performing error correction decoding on the data read from the memory device 150, the ECC circuitry 138 may determine whether the error correction decoding has succeeded and output an instruction signal (e.g., a correction success signal or a correction fail signal). The ECC circuitry 138 may use the parity bit which is generated during the ECC encoding process, for correcting the error bit of the read data. When the number of the error bits is greater than or equal to a threshold number of correctable error bits, the ECC circuitry 138 may not correct error bits but instead may output an error correction fail signal indicating failure in correcting the error bits.

The ECC circuitry 138 may perform an error correction operation based on a coded modulation such as a low density parity check (LDPC) code, a Bose-Chaudhuri-Hocquenghem (BCH) code, a turbo code, a Reed-Solomon (RS) code, a convolution code, a recursive systematic code (RSC), a trellis-coded modulation (TCM), or a Block coded modulation (BCM). The ECC circuitry 138 may include any and all circuits, modules, systems or devices for performing the error correction operation based on at least one of the above described codes.

The PMU 140 may manage an electrical power provided in the controller 130. For example, the PMU 140 may detect power-on and power-off of the memory system 110. In addition, the PMU 140 may include a power detector.

The memory interface 142 may serve as an interface for handling commands and data transferred between the controller 130 and the memory device 150, to allow the controller 130 to control the memory device 150 in response to a request delivered from the host 102. The memory interface 142 may generate a control signal for the memory device 150 and may process data entered into or outputted from the memory device 150 under the control of the processor 134 in a case when the memory device 150 is a flash memory and, in particular, when the memory device 150 is a NAND flash memory. The memory interface 142 may provide an interface for handling commands and data between the controller 130 and the memory device 150, for example, operations of NAND flash interface, in particular, operations between the controller 130 and the memory device 150. In accordance with an embodiment, the memory interface 142 may be implemented through firmware called a flash interface layer (FIL) as a component for exchanging data with the memory device 150.

The memory 144 may support operations performed by the memory system 110 and the controller 130. The memory 144 may store temporary or transactional data generated or delivered for operations in the memory system 110 and the controller 130. The controller 130 may control the memory device 150 in response to a request from the host 102. The controller 130 may deliver data read from the memory device 150 into the host 102. The controller 130 may store data entered through the host 102 within the memory device 150. The memory 144 may be used to store data required for the controller 130 and the memory device 150 to perform operations such as read operations or program/write operations.

The memory 144 may be implemented with a volatile memory. The memory 144 may be implemented with a static random access memory (SRAM), a dynamic random access memory (DRAM) or both. Although FIG. 2 exemplifies the memory 144 disposed within the controller 130, the present invention is not limited to that arrangement. That is, the memory 144 may be within or external to the controller 130. For instance, the memory 144 may be embodied by an external volatile memory having a memory interface transferring data and/or signals between the memory 144 and the controller 130.

The memory 144 may store data for performing operations such as data writing and data reading requested by the host 102 and/or data transfer between the memory device 150 and the controller 130 for background operations such as garbage collection and wear levelling as described above. In accordance with an embodiment, for supporting operations in the memory system 110, the memory 144 may include a program memory, a data memory, a write buffer/cache, a read buffer/cache, a data buffer/cache and a map buffer/cache.

The processor 134 may be implemented with a microprocessor or a central processing unit (CPU). The memory system 110 may include one or more processors 134. The processor 134 may control overall operation of the memory system 110. By way of example but not limitation, the processor 134 can control a program operation or a read operation of the memory device 150, in response to a write request or a read request entered from the host 102. In accordance with an embodiment, the processor 134 may use or execute firmware to control overall operation of the memory system 110. Herein, the firmware may be a flash translation layer (FTL). The FTL may serve as an interface between the host 102 and the memory device 150. The host 102 may transmit requests for write and read operations to the memory device 150 through the FTL.

The FTL may manage operations of address mapping, garbage collection, wear-leveling and so forth. Particularly, the FTL may load, generate, update, or store map data. Therefore, the controller 130 may map a logical address, which is entered from the host 102, with a physical address of the memory device 150 through the map data. The memory device 150 may otherwise function as a general storage device to perform a read or write operation because of the address mapping operation. Also, through the address mapping operation based on the map data, when the controller 130 tries to update data stored in a particular page, the controller 130 may program the updated data on another empty page and may invalidate old data of the particular page (e.g., update a physical address, corresponding to a logical address of the updated data, from the particular page to the newly programed page) due to a characteristic of a flash memory device. Further, the controller 130 may store map data of the new data into the FTL.

For example, when performing an operation requested from the host 102 in the memory device 150, the controller 130 uses the processor 134. The processor 134 engaged with the memory device 150 may handle instructions or commands corresponding to an inputted command from the host 102. The controller 130 may perform a foreground operation as a command operation, corresponding to an command from the host 102, such as a program operation corresponding to a write command, a read operation corresponding to a read command, an erase/discard operation corresponding to an erase/discard command and a parameter set operation corresponding to a set parameter command or a set feature command with a set command.

For another example, the controller 130 may perform a background operation on the memory device 150 through the processor 134. By way of example but not limitation, the background operation for the memory device 150 includes copying data in a memory block, among the memory blocks 152, 154, 156, and storing such data in another memory block (e.g., a garbage collection (GC) operation). The background operation may include an operation to move data stored in at least one of the memory blocks 152, 154, 156 in the memory device 150, into at least another of the memory blocks 152, 154, 156 (e.g., a wear leveling (WL) operation). During a background operation, the controller 130 may use the processor 134 for storing the map data stored in the controller 130 to at least one of the memory blocks 152, 154, 156, e.g., a map flush operation. A bad block management operation of checking for bad blocks among the plurality of memory blocks 152, 154, 156 is another example of a background operation performed by the processor 134.

In the memory system 110, the controller 130 performs a plurality of command operations corresponding to a plurality of commands received from the host 102. For example, when performing a plurality of program operations corresponding to plural program commands, a plurality of read operations corresponding to plural read commands and a plurality of erase operations corresponding to plural erase commands sequentially, randomly or alternatively, the controller 130 may determine which channel(s) or way(s) for connecting the controller 130 to which memory die(s) in the memory 150 is/are proper or appropriate for performing each operation. The controller 130 may send or transmit data or instructions via determined the channel(s) or way(s) for performing each operation. The plurality of memory dies may transmit an operation result via the same channel(s) or way(s), respectively, after each operation is complete. Then, the controller 130 may transmit a response or an acknowledge signal to the host 102. In an embodiment, the controller 130 may check a status of each channel or each way. In response to a command received from the host 102, the controller 130 may select at least one channel or way based on the status of each channel or each way so that instructions and/or operation results with data may be delivered via selected channel(s) or way(s).

By way of example but not limitation, the controller 130 may recognize statuses regarding channels (or ways) associated with memory dies in the memory device 150. The controller 130 may determine each channel or each way as being in a busy state, a ready state, an active state, an idle state, a normal state, or an abnormal state. The controller's determination of which channel or way an instruction (and/or a data) is delivered through can be based on a physical block address, e.g., to which die(s) the instruction (and/or the data) is delivered. The controller 130 may refer to descriptors delivered from the memory device 150. The descriptors may include a block or page of parameters that describe relevant characteristics about the memory device 150. Each descriptor may be data with a set format or structure. For instance, the descriptors may include device descriptors, configuration descriptors, unit descriptors, and the like. The controller 130 can refer to, or use, the descriptors to determine with which channel(s) or way(s) an instruction or a data is exchanged.

A management unit (not shown) may be included in the processor 134. The management unit may perform bad block management of the memory device 150. The management unit may find bad memory blocks, which are in unsatisfactory condition for further use, as well as perform bad block management on the bad memory blocks. When the memory device 150 is a flash memory, for example, a NAND flash memory, a program failure may occur during the write operation, for example, during the program operation, due to characteristics of a NAND logic function. During the bad block management, the data of the program-failed memory block or the bad memory block may be programmed into a new memory block. The bad blocks may seriously aggravate the utilization efficiency of the memory device 150 having a 3D stack structure and the reliability of the memory system 110. Thus, reliable bad block management may enhance or improve performance of the memory system 110.

FIG. 3 illustrates a controller 130 in a memory system according to an embodiment of the disclosure. Referring to FIG. 3, the controller 130 cooperates with the host 102 and the memory device 150. The controller 130 may include a host interface (I/F) 132, a flash translation layer (FTL) circuitry 40, a memory interface (I/F) 142 and a memory 144.

Although not shown in FIG. 3, in accordance with an embodiment, the ECC circuitry 138 in FIG. 2 may be included in the flash translation layer circuitry 40. In another embodiment, the ECC circuitry 138 may be implemented as a separate module, a circuit, or firmware, which is included in, or associated with, the controller 130.

The host interface 132 is for handling commands and data from the host 102. By way of example but not limitation, the host interface 132 may include a command queue 56, a buffer manager 52 and an event queue 54. The command queue 56 may sequentially store commands and data from the host 102 and output them to the buffer manager 52 in a stored order. The buffer manager 52 may classify, manage or adjust the commands and the data, which are delivered from the command queue 56. The event queue 54 may sequentially transmit events for processing the commands and the data, from the buffer manager 52.

A plurality of commands or data of the same characteristic may be continuously received from the host 102, or commands and data of different characteristics may be transmitted to the memory system 110 after being mixed or jumbled. For example, a plurality of commands for reading data (i.e., read commands) may be delivered, or read commands and program/write commands may be alternately transmitted to the memory system 110. The host interface 132 may store commands and data, which are received from the host 102, to the command queue 56 sequentially. Thereafter, the host interface 132 may estimate or predict what kind of internal operation the controller 130 will perform according to the characteristics of the command and data received from the host 102. The host interface 132 may determine a processing order and a priority of commands and data, based at least on their characteristics. According to characteristics of commands and data, from the host 102, the buffer manager 52 is configured to determine whether the buffer manager 52 should store commands and data in the memory 144, or whether the buffer manager 52 should deliver the commands and the data into the flash translation layer circuitry 40. The event queue 54 receives events, entered from the buffer manager 52, which are to be internally executed and processed by the memory system 110 or the controller 130 in response to the commands and the data from the host 102, so as to deliver the events into the flash translation layer (FTL) circuitry 40 in the order received.

In accordance with an embodiment, the host interface 132 in FIG. 3 may perform the functions of the controller 130 in FIGS. 1 and 2.

In accordance with an embodiment, the flash translation layer (FTL) circuitry 40 may include a state manager (GC/WL) 42, a map manager (MM) 44, a host request manager (HRM) 46, and a block manager (BM/BBM) 48. The host request manager 46 may manage the events entered from the event queue 54. The map manager 44 may handle or control a map data. The state manager 42 may perform garbage collection (GC) or wear leveling (WL). The block manager 48 may execute commands or instructions onto a block in the memory device 150.

By way of example but not limitation, the host request manager 46 may use the map manager 44 and the block manager 48 to handle or process requests according to the read and program commands, and events which are delivered from the host interface 132. The host request manager 46 may send an inquiry request to the map data manager 44, to determine a physical address corresponding to the logical address which is entered with the events. The host request manager 46 may send a read request with the physical address to the memory interface 142, to process the read request (handle the events). On the other hand, the host request manager 46 may send a program request (or write request) to the block manager 48, to program entered data to an empty page (i.e., a page having no data) in the memory device 150, and then, may transmit a map update request corresponding to the program request to the map manager 44, to update an item relevant to the programmed data in information of mapping the logical-physical addresses to each other.

Here, the block manager 48 may convert a program request delivered from the host request manager 46, the map data manager 44, and/or the state manager 42 into a flash program request used for the memory device 150, to manage flash blocks in the memory device 150. In order to maximize or enhance program or write performance of the memory system 110, the block manager 48 may collect program requests and send flash program requests for multiple-plane and one-shot program operations to the memory interface 142. The block manager 48 may send several flash program requests to the memory interface 142 to enhance parallel processing of the multi-channel and multi-directional flash controller.

The block manager 48 may be configured to manage blocks in the memory device 150 according to the number of valid pages, select and erase blocks having no valid pages when a free block is needed, and select a block including the least number of valid pages when it is determined that garbage collection is necessary. The state manager 42 may perform garbage collection to move the valid data to an empty block and erase remaining data in the blocks from which the valid data was moved so that the block manager 48 may have enough free blocks (i.e., empty blocks with no data). If the block manager 48 provides information regarding a block to be erased to the state manager 42, the state manager 42 is able to check all flash pages of the block to be erased to determine whether each page is valid. For example, to determine validity of each page, the state manager 42 may identify a logical address stored in an out-of-band (00B) area of each page. To determine whether each page is valid, the state manager 42 may compare the physical address of the page with the physical address mapped to the logical address obtained from the request. The state manager 42 sends a program request to the block manager 48 for each valid page. A mapping table may be updated through the update of the map manager 44 when the program operation is complete.

The map manager 44 may manage a logical-to-physical mapping table. The map manager 44 may process requests such as queries and updates, which are generated by the host request manager 46 or the state manager 42. The map manager 44 may store the entire mapping table in the memory device 150 (e.g., a flash/non-volatile memory) and cache mapping entries according to the storage capacity of the memory 144. When a map cache miss occurs while processing inquiry or update requests, the map manager 44 may send a read request to the memory interface 142 to load a relevant mapping table stored in the memory device 150. When the number of dirty cache blocks in the map manager 44 exceeds a certain threshold, a program request may be sent to the block manager 48 so that a clean cache block is made and the dirty map table may be stored in the memory device 150.

When garbage collection is performed, the state manager 42 copies valid page(s) into a free block, and the host request manager 46 may program the latest version of the data for the same logical address of the page and currently issue an update request. When the state manager 42 requests the map update in a state in which copying of valid page(s) has not been completed, the map manager 44 may not perform the mapping table update. This is because the map request is issued with old physical information if the state manger 42 requests a map update and a valid page copy is not completed until later. The map manager 44 may perform a map update operation to ensure accuracy only if the latest map table still points to the old physical address.

In accordance with an embodiment, the FTL circuitry 40 may include the correlation circuitry 194 shown in FIG. 1, and the memory interface 142 may include the operation control circuitry 196 and the buffer control circuitry 198 shown in FIG. 1. In another embodiment, the memory interface 142 includes the correlation circuitry 194, the operation control circuitry 196 and the buffer control circuitry 198 shown in FIG. 1.

The memory device 150 may include a plurality of memory blocks. Each of the plurality of memory blocks may be a single level cell (SLC) memory block or a multi level cell (MLC) memory block, according to the number of bits that can be stored or represented in one memory cell of such block. Here, the SLC memory block includes a plurality of pages implemented by memory cells, each storing one bit of data. The SLC memory block can have high data I/O operation performance and high durability. The MLC memory block includes a plurality of pages implemented by memory cells, each storing multi-bit data (e.g., two bits or more). The MLC memory block can have a larger storage capacity for the same space compared to the SLC memory block. The MLC memory block can be highly integrated in terms of storage capacity. In an embodiment, the memory device 150 may be implemented with MLC memory blocks, such as a double level cell memory block, a triple level cell (TLC) memory block, a quadruple level cell (QLC) memory block and a combination thereof. The double level memory block may include a plurality of pages implemented by memory cells, each capable of storing 2-bit data. The triple level cell (TLC) memory block may include a plurality of pages implemented by memory cells, each capable of storing 3-bit data. The quadruple level cell (QLC) memory block may include a plurality of pages implemented by memory cells, each capable of storing4-bit data. In another embodiment, the memory device 150 may be implemented with a block including a plurality of pages implemented by memory cells, each capable of storing 5-bit or more bit data.

In an embodiment of the disclosure, the memory device 150 is embodied as a nonvolatile memory such as a flash memory such as a NAND flash memory, a NOR flash memory and the like. In another embodiment, the memory device 150 may be implemented by at least one of a phase change random access memory (PCRAM), a ferroelectrics random access memory (FRAM) and a spin injection magnetic memory (e.g., a spin transfer torque magnetic random access memory (STT-MRAM)).

FIG. 4 illustrates a memory device 150 in a memory system in accordance with an embodiment of the invention. More specifically, FIG. 4 illustrates an internal configuration of the memory device 150.

Referring to FIG. 4, the memory device 150 may include the plurality of memory dies 240A, 240B, 240C, 240D. The first memory die 240A and the second memory die 240B may be coupled to the controller 130 through the first channel CH1. The third memory die 240C and the fourth memory die 240D may be connected to the controller 130 through the second channel CH2.

In FIG. 4, a configuration in which four memory dies 240A, 240B, 240C, 240D are coupled to the controller 130 through two channels CH1, CH2 is described. However, the invention is not limited that or any particular configuration of dies and channels. Even though the memory device 150 may include at least two dies and at least two channels, the number of dies and channels in a given configuration depends on the various factors, such as the overall configuration of the memory system, the purpose(s) for which it is employed and the specification defining communication between the memory system and the engaged host.

When a plurality of memory dies is connected to a single channel, each memory die may be coupled with the channel through different ways. In FIG. 4, the first memory die 240A and the second memory die 240B may be coupled with the first channel CH1 through a first way W1 and a second way W2, individually. The third memory die 240C and the fourth memory die 240D may be coupled with the second channel CH2 through the first way W1 and the second way W2, individually. In this particular configuration, the number of ways is the same as the number of memory dies.

FIGS. 5A to 5C illustrate characteristics of the correlation operation performed by the controller 130. Specifically, the two graphs in FIGS. 5A to 5C may illustrate a result obtained by performing the correlation operation repeatedly under an unspecified and random situation.

Referring to FIG. 5A, as the correlation circuitry 194 in the controller 130 of FIG. 1 tries to perform the correlation operation to an increasing number of read requests, a probability of correlating such read requests increases as the read requests increase. For example, the probability of correlating 20 read requests is greater than that of 5 read requests.

When there is no address limitation in a memory system, physical locations in the memory device 150 corresponding to logical addresses delivered with a few read requests may not be distributed. In this case, the number of read requests correlated by the correlation circuitry 194 may be small. However, when a large number of read requests are transmitted to the memory system 110, the probability that the read requests are correlated is higher. For example, the correlation probability may be higher when the number of read requests is the second reference value REF2 compared to when the number of read requests is the first reference value REF1, which is less than the second reference value REF2.

Referring to FIG. 5B, when a plurality of read requests are sequentially transmitted to the correlation circuitry 194, the correlation probability according to an input time (or input sequence) of the read requests is described. As described with reference to FIG. 4, it is assumed that there are two channels between the controller 130 and the memory device 150. For example, a first read request sent to the correlation circuitry 194 may not be correlated because there are no other read requests which are ready to be correlated. When a second read request is delivered to the correlation circuitry 194, the second read request may or may not be correlated with the first read request; the probability is 50:50. When a third read request is delivered to the correlation circuitry 194, the correlation circuitry 194 may attempt to correlate the third read request with the first and second read requests if the first and second read requests are not correlated. Thus, the correlation probability may be higher at the time when the third read request is delivered than at the time when the second read request is delivered. Based on these characteristics, the correlation circuitry 194 may distinguish states before and after a specific read request is received. For example, after a read request (corresponding to third reference value REF3) is received, the correlation circuitry 194 may determine that a probability of correlation is sufficiently high, and attempt to perform the correlation operation on the previously-received read request(s) together with the (REF3)th read request. In contrast, before the (REF3)th read request is received, the correlation circuitry 194 may determine that a correlation probability is too low, and thus skip performing the correlation operation on the read requests received before the third reference value REF3 read request.

In another example, it is assumed that 20 read requests are delivered. When 19th and 20th read requests are inputted, the probability of correlation may be lower when 9th to 11th read requests are inputted. This is because, when 19th and 20th read requests are inputted, the previously inputted read requests, i.e., 1st to 18th read requests, may have been already correlated and outputted to the operation control circuitry 196. As the correlated read requests are transferred after a certain time passes, the correlation probability may be lowered. After the correlation probability decreases, it is unlikely that the correlation probability increases again if a new read request is not delivered. In order for the correlation circuitry 194 to avoid wasting resources (for example, time, operation margin, or power) to perform the correlation operation, the correlation operation may be stopped or halted at a time when the read request corresponding to a fourth reference value REF4 is transmitted.

Referring to FIG. 5C, if the correlation circuitry 194 does not perform the correlation operation and waits until the number of read requests reaches a certain number, the possibility of correlation may increase. Furthermore, if the operation control circuitry 196 is in an idle state while the correlation circuitry 194 is waiting, the channel idle time becomes long, causing a read latency. Accordingly, data input/output performance (i.e., I/O throughput) of the memory system 110 may be deteriorated.

In an embodiment, the correlation circuitry 194 may stop the correlation operation in response to the number of uncorrelated read requests. For example, if a small number of uncorrelated read requests, e.g., two or three, remain, among 20 read requests, the correlation circuitry 194 may output the uncorrelated read requests to the operation control circuitry 196 without holding them for a next correlation operation. When the correlation circuitry 194 holds a few read requests for performing a next correlation operation, the data input/output performance (e.g., I/O throughput) of the memory system 110 may be deteriorated.

FIG. 6 illustrates an internal configuration of the controller 130 according to an embodiment of the invention.

Referring to FIG. 6, the controller 130 may include the correlation circuitry 194, the operation control circuitry 196 and the buffer control circuitry 198. For example, the buffer control circuitry 198, the correlation circuitry 194, and the operation control circuitry 196 may be operatively engaged with an output buffer 186, an input buffer 184 and a map memory 182 to proceed with or stop the correlation operation.

The controller 130 may include the output buffer 186, the input buffer 184, and the map memory 182. According to an embodiment, the output buffer 186, the input buffer 184, and the map memory 182 may be functional modules that may be implemented with the memory 144 described with reference to FIGS. 2 to 3. The output buffer 186, the input buffer 184, and the map memory 182 may be implemented with a single volatile memory device or plural, separate volatile memory devices. In an embodiment, the output buffer 186, the input buffer 184 and the map memory 182 may be implemented with a plurality of cache memories.

For example, each of the output buffer 186 and the input buffer 184 may have a data structure such as a queue. In this case, the output buffer 186 and the input buffer 184 may output a piece of data according to the stored order of data (e.g., first-in first-out, FIFO). The map memory 182 may have various structures according to map data, and storage structure and management rule regarding map information.

The controller 130 may translate a logical address, which is an address inputted from the host 102, into a physical address indicating a physical location in the memory device 150. The controller 130 may load the map data and the map information stored in the memory device 150 for performing address translation.

According to an embodiment, when there is a sufficient storage space in the memory 144 which is included in the controller 130 or operably engaged with the controller 130, all map data, or all map information, used for address translation may be loaded once. However, in a case when the memory system 110 is mounted in a portable terminal, it may be difficult for the controller 130 to have sufficient storage space for storing all of map data or all of map information. In this case, the controller 130 may retrieve specific map data, i.e., some map data, from the memory device 150, use or update the retrieved map data, store updated map data in the memory device 150, and retrieve other map data stored in the memory device 150. According to an embodiment, a pre-allocated space in the memory 144 may be utilized for storing map data or map information.

In an example, if the requested map data cannot be stored in a region of the memory 144, the controller 130 may remove the least recently used (LRU) map data in the region based on an LRU replacement scheme. In another example, when the requested map data cannot be stored in the region of the memory 144, the controller 130 may remove the least frequently used (LFU) map data in the region based on an LFU replacement scheme. The controller 130 requests the map data or the map information for performing address translation from the memory device 150, which incurs overhead, so that overall performance or I/O throughput of the memory system 110 may be degraded. Thus, it is desirable to avoid unnecessary replacement of map data and map information.

For example, it is assumed that there are 20 read requests for correlation. The controller 130 may check the map memory 182 based on logical addresses associated with the 20 read requests. It is assumed that map addresses or map data relevant to 11 read requests are found in the map memory 182, and the map data or the map addresses relevant to 9 read requests are not found in the map memory 182. In this case, the controller 130 may load map data or map addresses relevant for the 9 read requests from the memory device 150 into the map memory 182. According to an embodiment, when a storage space of the map memory 182 is not sufficient, the correlation circuitry 194 may first perform the correlation operation with respect to the 11 read requests of which map addresses or map data has been loaded in the map memory 192.

The correlation operation performed by the correlation circuitry 194 may be considered overhead in view of data input/output performance (e.g., I/O throughput) of the memory system 110. Accordingly, when the operation control circuitry 196 is in an idle state, it may be desirable for the correlation circuitry 194 not to perform the correlation operation to all read requests. Without the correlation operation, the correlation circuitry 194 transfers at least one read request to the operation control circuitry 196, so that the operation control circuitry 196 may transition from the idle state to an operational state. Based on the characteristics of the correlation operation described with reference to FIGS. 5A to 5C, the correlation circuitry 194 may determine whether to proceed or stop the correlation operation. For example, when the number of read requests is less than the first reference value REF1, the correlation circuitry 194 may not perform the correlation operation on the read requests. In addition, a first read request transmitted to the correlation circuitry 194 may be transferred to the operation control circuitry 196 without the correlation operation. Furthermore, when the number of read requests remaining in the correlation circuitry 194 is less than a set threshold, the correlation circuitry 194 may stop or halt the correlation operation.

FIG. 7 illustrates a correlation operation method of a controller according to an embodiment of the disclosure. According to an embodiment, the correlation operation may be performed by the correlation circuitry 194 in the controller 130.

Referring to FIG. 7, the method of performing the correlation operation may include determining whether to correlate read requests when the number of read requests received for the correlation operation is greater than a first set value (S30), transferring at least one read request having a reception order lower than a second set value, without the correlation operation (S32), correlating the read requests to generate correlated read request (S34), and skipping the correlation operation to the read requests when the number of uncorrelated read requests is less than a third set value (S36).

In some embodiments, the first set value, the second set value, and the third set value may be determined based on the numbers of memory dies and channels in the memory system 110. In addition, the first set value, the second set value, and the third set value may be determined based on the characteristics of the correlation operation described with the graphs of FIG. 5A to FIG. 5C. For example, the first set value may be the first reference value REF1, the second set value may be the third reference value REF3, and the third set value may be the fourth reference value REF4. Also, the first set value, the second set value, and the third set value may be adjusted based on a success rate of the correlation operation, which may be accumulatively monitored and tracked. These set values may be considered thresholds.

As shown FIGS. 5A to 5C, even when a plurality of read requests are received for the correlation operation, the probability of correlation may be low when there are only a few read requests. For example, when the number of channels in the memory system 110 is two and the correlation operation is performed for three read requests, it is possible that two read requests may be correlated but one read request may not be correlated. In addition, when an unsuccessful attempt is made to correlate all three read requests, the data input/output performance of the memory system 110 may be degraded because of the time consumed by the attempted correlation operation. To solve this issue, according to an embodiment, a process for performing the correlation operation may include determining whether to attempt the correlation operation in response to the number of read requests transmitted for the correlation operation (S30). The first set value may be determined based on the number of channels.

However, as described in FIG. 5C, in order to avoid a read operation delay (i.e., read latency) by increasing of the channel idle time, the controller 130 performs the correlation operation when the number of read requests is more than the first set value. That is, the controller 130 does not perform the correlation operation until the number of the read requests reaches the first set value. The first set value may be greater than the number of the channels and less than twice the number of the channels. Accordingly, the correlation operation can reduce the idle time of the channel, thereby preventing the read operation delay.

In addition, even if the number of read requests transferred is greater than the first set value and the controller 130 decides to perform the correlation operation, the data input/output performance of the memory system 110 may be degraded when the operation control circuitry 196 of FIGS. 1 and 6 is in an idle state. Therefore, even if a plurality of read requests are transmitted, a read request having a transmitted order number lower than the second set value may be transferred to the operation control circuitry 196 without the correlation operation (S32). For example, it is assumed that the correlation operation would be performed for 20 read requests. If the operation control circuitry 196 is in the idle state, the correlation circuitry 194 may transfer the first or second read request among 20 read requests into the operation control circuitry 196 without performing the correlation operation. That is, the correlation circuitry 194 does not attempt to correlate the first or the second read request. According to an embodiment, the second set value may be less than or equal to the number of channels in the memory system 110.

The controller 130 may perform the correlation operation with respect to the transferred read request (S34). For example, the correlation circuitry 194 receives 20 read requests, and transfers the first and the second read requests to the operation control circuitry 196 without performing the correlation operation. While the correlation circuitry 194 performs the correlation operation on the remaining 18 read requests, the operation control circuitry 196 may perform address translations for the first or second read requests and transfer the first and second read requests to one or two memory dies among the plurality of memory dies in the memory device 150. While the operation control circuitry 196 handles the first and second read requests, the correlation circuitry 194 may have an operation margin for performing the correlation operation to at least some of the remaining 18 read requests.

The controller 130 may not perform the correlation operation when the number of uncorrelated read requests is less than the third set value (S36). In other words, the controller 130 may skip the correlation operation in that case. For example, it is assumed that three read requests are still uncorrelated in the process of performing the correlation operation on 18 read requests. When the correlation circuitry 194 holds three uncorrelated read requests to correlate with another read request inputted later, the operation control circuitry 196 may be in an idle state. In this case, the data input/output performance of the memory system 110 may be degraded. When the number of uncorrelated read requests is less than the third set value, the correlation circuitry 194 may stop the correlation operation on the remaining uncorrelated read requests. According to an embodiment, the third set value may be greater than the number of channels in the memory system 110 and/or less than or equal to the number of memory dies.

The controller 130 may store a correlation rate resulted by the correlation operation (for example, a ratio of correlated read requests total transferred read requests). For example, the correlation rate may be obtained from dividing the number of correlated read requests by the number of read requests delivered for correlation. The controller 130 may calculate the correlation rate and store the correlation rate in the memory 144 of FIG. 2. As shown in FIG. 5A, the correlation rate may be estimated based on the number of read requests transmitted for the correlation operation. According to an embodiment, the controller 130 may stop the correlation operation when the correlation rate reaches a set value based on the number of read requests for the correlation operation. In this case, even though the controller 130 may perform the correlation operation to deliver a correlated read request, overhead caused by the correlation operation may affect the data input/output performance of the memory system 110.

FIG. 8 illustrates a first operation of the controller 130 regarding a plurality of read requests. For example, the first operation may be performed by the correlation circuitry 194 in FIG. 6.

Referring to FIG. 8, it is assumed that a plurality of read requests 222 from the host 102, which is an external device, are stored in the input buffer 184. The plurality of read requests 222 stored in the input buffer 184 may be sorted according to the order in which they are received from the host 102. In the illustrated embodiment, the plurality of read requests 222 includes ten read requests RD1 to RD10.

Before 10 read requests RD1 to RD10 are correlated, plural segments of map information about some logical addresses LA001 to LA100, LA101 to LA200, LA201 to LA300, LA801 to LA900 are loaded in the map memory 182. When a segment of map information required for performing address translation for logical addresses (LBA) received with 10 read requests RD1 to RD10 is not loaded in the map memory 182, the controller 130 may receive corresponding map information from the memory device 150 and store the map information in the map memory 182.

The read requests RD1 to RD10 may have the same structure such as the same code according to a protocol between the host 120 and the memory system 110. By way of example, in FIG. 8, the read requests RD1 to RD10 are received in that order. Each read request RD1 to RD10 may be transferred together with at least one logical address LBA used by the host 102.

Referring to the map memory 182, the correlation circuitry 194 may recognize which memory die each read request with the logical address LBA is transmitted into.

When the correlation circuitry 194 checks a memory die in the memory device 150 based on the logical address (LBA) corresponding to each read request, the correlation circuitry 194 may recognize which channel each read request is transferred via, as described in

FIG. 8. However, the correlation circuitry 194 does not determine which memory die the first read request RD1 should be delivered to, when the operation control circuitry 196 is in an idle state as described with reference to FIG. 7.

FIG. 9 illustrates a second operation of the controller 130 regarding a plurality of read requests. For example, the second operation may be performed by the correlation circuitry 194 in the controller 130.

Referring to FIG. 9, the correlation circuitry 194 may transfer the first read request RD1 to the operation control circuitry 196 without attempting the correlation operation. The correlation circuitry 194 may perform the correlation operation on the second read request RD2 to the last read request RD10.

Based on the logical address (LBA) received along with each read request from the second read request (RD2) to the last read request (RD10), the correlation circuitry 194 may recognize which memory die corresponds to a physical location in which data corresponding to the logical address is stored and which channel the data is transmitted via. Then, the correlation circuitry 194 may correlate 9 read requests RD2 to RD10 based on the number of channels, sequentially. Referring to FIGS. 6 and 9, the second read request RD2 may be correlated with the fourth read request RD4, because the second read request RD2 and the fourth read request RD4 are transmitted via different channels. The second read request RD2 and the third read request RD3 are not correlated, because the second read request RD2 and the third read request RD3 are transmitted via the same channel. The third read request RD3 may be correlated with the fifth read request RD5.

The correlation circuitry 194 may sequentially correlate read requests according to the order in which they are received, e.g., their input sequence. In FIG. 9, the correlation circuitry 194 does not attempt the correlation operation with respect to the first read request RD1. Alternatively, when the operation control circuitry 194 is busy, the correlation circuitry 194 may also perform the correlation operation with respect to the first read request RD1. When the correlation circuitry 194 performs the correlation operation starting from the first read request RD1, the first read request RD1 and the second read request RD2 may be correlated because the first read request RD1 and the second read request RD2 are transmitted via different channels. Then, the third read request RD3 may be correlated with the fourth read request RD4. According to an embodiment, a result of the correlation operation performed by the correlation circuitry 194 may be different.

FIG. 10 illustrates a result of the correlation operation performed by the controller 130.

Referring to FIG. 10, the plurality of read requests 222 may include ten read requests RD1 to RD10. The plurality of read requests 222 may be arranged according to the order in which they are delivered to the memory system 110 or the controller 130.

After the processes shown in FIGS. 8 and 9, the plurality of correlated read requests 333, which are correlated by the controller 130, are arranged in an order of execution. The first read request RD1 is transmitted without the correlation operation. The second read request RD2 and the fourth read request RD4 are correlated and transferred as correlated read requests, and the third read request RD3 and the fifth read request RD5 are correlated and transferred as correlated read requests. According to a transferred order, the operation control circuitry 196 may determine an execution order. If a certain read request is not correlated with another read request, the uncorrelated read request may be transferred later than the correlated read request, so that the uncorrelated read request may be performed after the correlated read request is performed. Here, the execution order may indicate an order in which the operation control circuitry 196 in FIG. 5 handles or processes a plurality of read requests.

As described above, a plurality of read requests received in the memory system 110 may be correlated corresponding to the number of channels in the memory system 110, and then each read request may be individually executed. Even if the memory system 110 does not have the address limitation structure having a strict rule about a physical location for storing a piece of data for interleaving operation, the controller 130 may perform the correlation operation on the plurality of read requests and then perform operations corresponding to the plurality of read requests according to a rescheduled order or an adjusted order based on a result of the correlation operation. Accordingly, plural pieces of data between the memory device 150 and the controller 130 may be transmitted in an interleaving way or according to an interleaving scheme through the plurality of channels.

Although the correlation operation is performed on some of the plurality of read requests, the data input/output performance of the memory system 110 may be improved compared to when interleaving data transmission does not occur for any of the read requests. In addition, in order that the correlation operation does not degrade the data input/output performance of the memory system 110, the correlation operation may be performed on read requests when there are plural pieces of data to be outputted to the host 102 in the output buffer 186. For example, when 30 read requests are received in a situation where there is no piece of data in the output buffer 186, the memory device 110 may skip correlating three read requests among 30 read requests and make the operation control circuitry 196 execute operations corresponding to the three read requests in accordance with an order in which they were input without the correlation operation. While the operation control circuitry 196 executes three read requests to output read data to the host 102, the correlation circuitry 194 may attempt to correlate 27 read requests.

It is assumed that three read requests are not correlated with each other in the process of attempting the correlation operation for 27 read requests. The correlation circuitry 194 may stop attempting the correlation operation with respect to three remaining read requests, because the probability of correlation may be low when that few read requests remain. When the correlation circuitry 194 unnecessarily uses resources to attempt to correlate a few read requests, the correlation circuitry 194 may affect the data input/output performance of the memory system 110.

As described above, according to an operation environment of the memory system 110, the controller 130 may control whether to attempt to correlate a plurality of read requests. For example, the controller 130 may determine whether to perform the correlation operation on the first of the plurality of read requests according to a state of the output buffer 186. In addition, when read requests for the correlation operation are continuously received, the correlation operation may be continued for a previously inputted read request and a currently inputted read request. However, when there are no more read requests received, uncorrelated read requests might be transferred to perform a corresponding operation according to the order in which such read requests were received, in order to avoid deteriorating the data input/output performance of the memory system 110. When the controller 130 holds uncorrelated read requests for correlation operation with other read requests, the data input/output performance of the memory system 110 might be degraded.

It may be difficult for the memory system 110 to predict the probability that a plurality of read requests will be correlated with each other because such probability changes. For example, the probability of the controller 130 performing a correlation operation increases as the number of read requests for the correlation operation increases. Conversely, a lower number of received read requests means a lower probability of performing the correlation operation. Because plural pieces of data requested by the host 102 may be distributed even if the memory system 110 does not apply an address limitation to store the plural pieces of data, the probability that the controller 130 may correlate read requests varies as indicated above.

In an embodiment, the controller 130 may perform the correlation operation on a plurality of read requests for a random read operation and/or a sequential read operation which are associated with requests from the host 102.

FIG. 11 illustrates a first example of a method for operating the memory system 110.

Referring to FIG. 11, the method for operating a memory system 110 may include steps S10 to S20. Step S10 may include receiving a plurality of read requests from an external device or a host. Step S12 may include determining whether to correlate the plurality of read requests. Step S14 may include performing a correlation operation on at least some the plurality of read requests based on logical addresses associated with the plurality of read requests. Step S16 may include performing address translation regarding correlated read requests to transfer the correlated read requests into specific memory dies among the plurality of memory dies through a plurality of channels. Step S18 may include receiving plural pieces of data corresponding to the correlated read requests in an interleaving way. Step S20 may include outputting the plural pieces of data to the external device, e.g., the host.

In some embodiments, the method for operating the memory system may further include performing the address translation regarding an uncorrelated read request sequentially to transfer the uncorrelated read request to a specific memory die among the plurality of memory dies, and receiving a piece of data corresponding to the uncorrelated read request from the specific memory die. By way of example but not limitation, the memory system 110 may determine an execution order or sequence of the plurality of read requests according to whether they are correlated, not on the order in which the plurality of read requests were received. The memory system 110 may perform operations corresponding to the correlated read requests first and, then, perform an operation corresponding to uncorrelated read request(s).

Step S12 may be carried out based on the number of read requests for the correlation operation, and an operation state of an output buffer. In order to perform the correlation operation under a condition where the data input/output performance of the memory system 110 is not deteriorated, the correlation operation may be performed after an operation margin for the correlation operation is secured.

In some embodiments, the method for operating the memory system may further include determining whether the number of pieces of data to be outputted to the external device in the output buffer is more than a set value. The set value may be determined based on a first data input/output speed between the external device and/or the memory system 110 and a second data input/output speed between the controller 130 and the plurality of memory dies. For example, it is assumed that it takes 10 ms for the memory system 110 to transmit a piece of data to the external device. If the output buffer includes 10 pieces of data to be outputted to the external device, the memory system 110 may have an operating margin of 100 ms (=10×10). For example, it is assumed that it takes 5 ms to transfer a read request and receive a piece of data between the controller 130 and the plurality of memory dies in the memory system 110. In this case, the controller 130 may attempt to correlate a plurality of read requests during an operating margin secured up to 95 ms of the 100 ms.

The controller 130 may recognize an operation speed (or a set operation margin) for an internal operation, check a time spent on the internal operation, and calculate an operation margin according to a protocol defining communication between the host and the memory system 110. Accordingly, the controller 130 may calculate and estimate an operation margin for attempting to correlate the plurality of read requests. For example, the controller 130 may calculate the maximum value of the operating margin secured for the correlation operation and perform the correlation operation to the plurality of read requests during a time corresponding to 70 to 90% of the maximum value. According to an embodiment, a time range during which the controller 130 may attempt to correlate the plurality of read requests may be different. Further, the controller 130 may dynamically determine an operation margin when the controller 130 may attempt to correlate the plurality of read requests based on an operation environment of the memory system 110 and an operating state of the memory device 150.

In step S14, the correlation operation may be performed based on the logical addresses associated with the plurality of read requests, according to an input order or an input sequence of the plurality of read requests. The correlated read requests may be delivered earlier than the uncorrelated read request, so that the data input/output performance of the memory system 110 may be improved.

In some embodiments, to avoid deterioration of the data input/output performance of the memory system 110, sometimes the correlation operation may not be attempted on some of the plurality of read requests. For example, if circuitry performing address translation is in an idle state, the correlation operation may not be attempted on a small number of read requests, e.g., one or two read requests.

When map data associated with logical addresses inputted together with some read requests is not loaded in a cache memory (or a map data region in a volatile memory), the method may include requesting corresponding map data from the plurality of memory dies. If there is not enough space to store the map data in the cache memory, requested map data may be loaded after updated map data is programmed into the memory device 150 and released. Alternatively, unnecessary map data may be released in the cache memory. For example, when the map data requested in the region cannot be stored in the cache memory, the map data used least recently in the cache memory may be released. According to an embodiment, when the requested map data cannot be stored in the cache memory, the map data least frequently used in the cache memory may be released.

In step S16, the address translation may be performed on each read request according to an execution order changed by the correlation operation. The controller 130 may translate logical addresses associated with the correlated read requests into physical locations where pieces of data associated with the logical addresses are stored, based on the map data and the map information loaded in the map memory 182. Further, the controller 130 may transmit the correlated read requests into plural memory dies in the memory device 150 via different channels.

In step S18, each of the memory dies may output a piece of data in response to the read request. Herein, the read requests, each transmitted to a respective memory die, may be transmitted sequentially via each channel and transmitted in parallel via different channels. Plural pieces of data outputted from the memory dies may be also transmitted sequentially via each channel and transmitted in parallel via different channels.

After receiving the plural pieces of data through a plurality of channels, the controller 130 may output the plural pieces of data to the external device or the host (S20). The controller 130 may temporarily store the plural pieces of data in the output buffer 186 before outputting the plural pieces of data to the external device. In the output buffer 186, plural pieces of data are outputted in an input order (e.g., FIFO) to the external device.

FIG. 12A exemplarily illustrates a first memory die DIE#1 and a second memory die DIE#2 for describing a correlation operation.

Referring to FIG. 12A, the first memory die DIE#1 may include a first plane including an SLC block BLK01 and an MLC block BLK02 and a second plane including an SLC block BLK03 and a TLC block BLK04. The second memory die DIE#2 may include a third plane including an SLC block BLK05 and a TLC block BLK06 and a fourth plane including an SLC block BLK07 and an MLC block BLK08.

SLC blocks BLK01, BLK03, BLK05 and BLK07 may be meta blocks that store meta data. MLC blocks BLK02 and BLK08 and TLC blocks BLK04 and BLK06 may be user blocks that store user data.

In the present embodiment, all the meta data may be stored in the SLC blocks. That is, since the meta data are stored in memory blocks having the same storage mode, the speeds of meta data read operations may be the same. Accordingly, the meta data stored in the memory blocks coupled to different channels and having the same storage mode, i.e., SLC, may be read in an interleaving way.

User data may be programmed in a variety of storage modes. When the storage modes of the programmed data are different, the speeds of read operations are also different. For this reason, the user data stored in memory blocks having different storage modes, for example, MLC, TLC and QLC, may not be read in the interleaving way. Accordingly, in the present embodiment, the correlation operation may be performed on read requests related to user data stored in user blocks coupled to different channels and having the same storage mode. In the present embodiment, the user data may include request data, which are requested to be read by the host.

In the present embodiment, it is assumed that the SLC block BLK01 may store map data of the user data stored in the first plane, the SLC block BLK03 may store map data of the user data stored in the second plane, the SLC block BLK05 may store map data of the user data stored in the third plane, and the SLC block BLK07 may store map data of the user data stored in the fourth plane. However, the present disclosure is not limited thereto.

FIG. 12B illustrates a time point of performing a correlation operation based on a set threshold value TH1. The controller 130 may set the threshold value TH1 to be greater than the number of channels nCH# and less than twice the number of channels 2*nCH#. Threshold value TH1 may include the number of read requests RD for determining whether the controller 130 starts the correlation operation.

In other words, referring to FIGS. 12A and 12B, the controller 130 may set the threshold value TH1 to “3”, which is a natural number greater than or equal to “1”, that is, greater than “2”, which is the number of channels nCH#, and less than “4”, which is twice the number of channels 2*nCH#. Accordingly, when the number of read requests RD is greater than or equal to “3”, the controller 130 may start the correlation operation.

FIGS. 13A to 13C illustrate specific examples of the correlation operation described in FIGS. 12A and 12B.

FIGS. 13A to 13C illustrate a method for performing the correlation operation on received read requests RD1 to RD10, in consideration of the threshold value TH1, a channel CH# coupled to a memory die DIE# in which data is stored and a storage mode of a memory block in which data is stored. FIG. 13C illustrates timing at which map data and user data, which correspond to the read requests RD, are outputted from a memory device in an interleaving way through the correlation operation described in FIGS. 13A and 13B.

Referring to FIGS. 12A, 12B and 13A, the first and second memory dies DIE#1 and DIE#2 are coupled to the controller 130 through two different channels CH#1 and CH#2. The controller 130 may set the threshold value TH1 to “3”, which is greater than the number of channels (2), and less than twice the number of channels.

Accordingly, the controller 130 may not perform the correlation operation until the number nRD of read requests for the correlation operation becomes “3”. Subsequently, when the number nRD of read requests becomes “3”, which is the threshold value TH1, the controller 130 may determine to start the correlation operation.

In order to perform the correlation operation, the controller 130 uses log information of map data, stored in the memory 144, to check storage locations of map data M_DT1, M_DT2 and M_DT3 related to three read requests RD1, RD2 and RD3. The controller 130 generates map requests for receiving the map data M_DT1, M_DT2 and M_DT3 from the memory device 150.

In order to receive the map data M_DT1, M_DT2 and M_DT3 in the interleaving way, the controller 130 may perform the correlation operation on the map requests of the map data M_DT1, M_DT2 and M_DT3 stored in memory blocks, which are coupled to different channels and have the same storage mode. Subsequently, the controller 130 may transfer the correlated map requests to the memory device 150, and receive the map data M_DT1, M_DT2 and M_DT3 from the memory device 150 in the interleaving way.

Accordingly, the controller 130 may pair (or correlate) first and second map requests M_DT1, M_DT2 stored in the memory blocks, which are coupled to different channels and have the same storage mode. In addition, the controller 130 may pair third and fourth map requests M_DT3, M_DT4 and pair fifth and seventh map requests M_DT5, M_DT7. At this time, since the fifth and sixth map requests M_DT5, M_DT6 are related to the same channel, i.e., CH#1, the controller 130 may pair the fifth map request with the seventh map request M_DT5, M_DT7 related to a different channel. Hereinafter, descriptions on map requests of the other read requests are omitted.

Referring to FIG. 13B, when the map data M_DT1, M_DT2 and M_DT3 respectively related to the three read requests RD1, RD2 and RD3 are received, the controller 130 may check physical storage locations and storage modes of user data U_DT1, U_DT2 and U_DT3 respectively related to the read requests RD1, RD2 and RD3. Accordingly, in order to receive the user data U_DT1, U_DT2 and U_DT3 in the interleaving way, the controller 130 may perform the correlation operation on user data requests for the user data U_DT1, U_DT2 and U_DT3 stored in memory blocks, which are coupled to different channels and have the same storage mode. Subsequently, the controller 130 may transfer the correlated user data requests to the memory device 150, and receive the user data U_DT1, U_DT2 and U_DT3 from the memory device 150 in the interleaving way.

Since the first and second read requests RD1 and RD2 are coupled to different channels and related to the same storage mode, i.e., an MLC mode, the controller 130 may pair the first and second read requests RD1 and RD2. In addition, since the third and seventh read requests RD3 and RD7 are coupled to different channels and related to the same storage mode, i.e., a TLC mode, the controller 130 may pair the third and seventh read requests RD3 and RD7. Furthermore, since the fourth and fifth read requests RD4 and RD5 are coupled to different channels and related to the same storage mode, i.e., the MLC mode, the controller 130 may pair the fourth and fifth read requests RD4 and RD5.

As illustrated in FIG. 13C, when a plurality of read requests are received, the controller 130 may determine whether to perform the correlation operation on the plurality of read requests, in step S110. At this time, in order to reduce an influence of the correlation operation on the input/output throughput and read latency of the memory system 110, the controller 130 may determine whether to perform the correlation operation according to an indication as to whether such operation would be successful based on the number of read requests. Particularly, in the present disclosure, when the number of read requests reaches the set threshold value TH1, the controller 130 may determine to perform the correlation operation.

When the threshold value TH1 is set to “3”, and the three read requests RD1, RD2 and RD3 are received from the host, the controller 130 performs the correlation operation. If the controller 130 waits for a large number of read requests to be received in order to increase the likelihood of correlation, the input/output throughput of the memory system 110 may deteriorate, and the read latency may increase. Accordingly, in an embodiment of the present disclosure, when the number of read requests RD is greater than the number of channels and less than twice the number of channels, the controller 130 may perform the correlation operation, thereby increasing the input/output throughput and decreasing the read latency.

Thereafter, the controller 130 may perform the correlation operation on each of the read requests of the map data and the read requests of the user data, and transfer the correlated read requests to the memory device 150.

Accordingly, the controller 130 may receive the map data M_DT1 and M_DT3 and the user data U_DT1 and U_DT3 in the interleaving way through the first and second channels CH#1 and CH#2, in step S130 and S150. In the steps S130 and S150 of receiving data for the correlated read requests in the interleaving way through a plurality of channels, a corresponding memory die may output data in response to the read requests transferred to each of the memory dies. The read requests transferred to each of the memory dies may be transferred so as to sequentially use the channels, and the map data and the user data outputted from the memory dies may also sequentially use the channels.

After receiving the data through the plurality of channels, the controller 130 may output the user data, received from the memory dies, to the host, in step S170. The controller 130 may temporarily store the user data U_DT, received from the memory dies, in the output buffer 186, and the output buffer 186 may output the data to the host in a stored order, in step S170.

After the map data M_DT3 and M_DT4 related to the read requests RD3 and RD4 are received from the memory dies, the user data U_DT3 and U_DT4 may not be received from the memory dies, but the map data M_DT5 and M_DT7 may be received from the memory dies, in step S180. Since the storage mode of the user data U_DT3 is the TLC mode, the user data U_DT3 may not be correlated with the user data U_DT4 whose storage mode is the MLC mode. Thus, the controller 130 receives the map data M_DT5 and M_DT7 related to the read requests RD5 and RD7, in step S190. Subsequently, the user data U_DT3 and U_DT7 and the user data U_DT4 and U_DT5, coupled to different channels and having the same storage mode, may be outputted from the memory dies in the interleaving way.

The effects of the memory system, the data processing system and the operating method thereof according to embodiments of the present disclosure are as follows.

According to embodiments, a memory system, a data processing system, an operating method of the memory system and a correlation checking method may remove or reduce an address limitation on a physical location in the memory system for an interleaving operation, and reduce overhead in the memory system for the interleaving operation.

In addition, as the address limitation on the physical location in the memory system for the interleaving operation is reduced while improving an input/output throughput of the memory system through the interleaving operation of the present disclosure, the efficiency, lifespan, etc. of the memory device may be improved.

These effects and advantages of the present disclosure are not limited to the embodiments described above, and other effects and advantages not described herein will become apparent to those skilled in the art of the present disclosure from the above-detailed description.

While the present disclosure has been illustrated and described with respect to specific embodiments, it will be apparent to those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the present invention as defined in the following claims. The present invention encompasses all such changes and modifications that fall within the scope of the claims including equivalents thereto. 

What is claimed is:
 1. A memory system comprising: a plurality of memory dies configured to store data in various storage modes; and a controller coupled with the plurality of memory dies via a plurality of channels and configured to perform a correlation operation on multiple read requests among a plurality of read requests received from a host so that the plurality of memory dies output plural pieces of data corresponding to the plurality of read requests via the plurality of channels in an interleaving way, wherein the controller is configured to determine whether to perform the correlation operation based on the number of read requests, and perform the correlation operation on the multiple read requests which are related to the same storage mode and different channels.
 2. The memory system of claim 1, wherein the controller performs the correlation operation when the number of read requests is greater than or equal to a threshold value, wherein the threshold value is greater than the number of channels and less than twice the number of channels.
 3. The memory system of claim 2, wherein the controller performs the correlation operation on a first group of read requests for receiving map data and transfers the correlated first group of read requests to corresponding channels among the plurality of channels, and receives the map data from the plurality of channels in the interleaving way.
 4. The memory system of claim 3, wherein the controller performs the correlation operation on a second group of read requests for receiving request data based on the received map data and transfers the correlated second group of read requests to corresponding channels, and receives the request data from the plurality of channels in the interleaving way.
 5. The memory system of claim 1, wherein the controller performs the correlation operation on a first group of read requests for receiving map data from the memory dies and a second group of read requests for receiving request data from the memory dies according to the read request received from the host.
 6. The memory system of claim 5, further comprising an output buffer configured to store data to be outputted to the host, wherein the controller is configured to perform the correlation operation when the number of pieces of data stored in the output buffer is greater than a set value.
 7. The memory system of claim 6, wherein the output buffer includes a queue for outputting data stored therein according to an input sequence of the stored data, and the controller determines the set value, based on a first data input/output speed between the host and the memory system and a second data input/output speed between the controller and the plurality of memory dies.
 8. The memory system of claim 1, wherein the controller is configured to skip the correlation operation on a first read request to a (n−1)th read request among the plurality of read requests, and perform the correlation operation on an n-th read request to a last read request among the plurality of read requests, and wherein n is the number of channels.
 9. The memory system of claim 1, wherein the controller is configured to stop the correlation operation on remaining read requests not yet correlated when the number of remaining read requests is less than the number of memory dies.
 10. The memory system of claim 1, wherein the controller performs the correlation operation using map data for address translation.
 11. The memory system of claim 10, further comprising: a memory configured to store the map data; an input buffer configured to store the plurality of read requests; and an output buffer configured to store data to be outputted to the host.
 12. The memory system of claim 11, wherein the controller includes: buffer control circuitry configured to monitor states of the input buffer and the output buffer to determine whether to perform the correlation operation; correlation circuitry configured to proceed, stop or skip the correlation operation on the plurality of read requests based on the number of read requests received, and to transfer a correlated read request earlier than an uncorrelated read request among the plurality of read requests; and operation control circuitry configured to perform the address translation on the plurality of read requests according to a transferred sequence of the plurality of read requests, and to transfer the plurality of read requests to the plurality of memory dies via the plurality of channels.
 13. The memory system of claim 1, wherein the plurality of memory dies store data in a single-level cell (SLC) mode, a multi-level cell (MLC) mode, a triple-level cell (TLC) mode or a quad-level cell (QLC) mode.
 14. An operating method of a memory system, the operating method comprising: receiving a plurality of read requests from a host; determining whether to perform a correlation operation on the plurality of read requests based on the number of read requests; selectively performing the correlation operation on the plurality of read requests based on a result of the determining operation and transferring the correlated read requests to a plurality of memory dies through a plurality of channels; receiving data corresponding to the correlated read requests from the plurality of memory dies via the plurality of channels in an interleaving way; and outputting the received data to the host, wherein the correlated read requests include multiple read requests which are related to the same storage mode and different channels among the plurality of read requests.
 15. The operating method of claim 14, wherein the determining of whether to perform the correlation operation comprises performing the correlation operation when the number of read requests is greater than or equal to a threshold value, wherein the threshold value is greater than the number of channels and less than twice the number of channels.
 16. The operating method of claim 14, wherein the performing of the correlation operation includes: performing a first correlation operation on a first group of read requests for receiving map data from the plurality of memory dies; transferring the correlated first group of read requests to corresponding channels among the plurality of channels; receiving the map data from corresponding memory dies among the plurality of memory dies in the interleaving way; performing a second correlation operation on a second group of read requests for receiving request data from the plurality of memory dies, based on the received map data; and transferring the correlated second group of read requests to corresponding channels among the plurality channels, and receiving the request data from corresponding memory dies among the plurality of memory dies in the interleaving way.
 17. The operating method of claim 14, wherein the first correlation operation is performed when the number of pieces of data stored in the output buffer, to be outputted to the host, is greater than a set value.
 18. The operating method of claim 17, wherein the set value is determined based on a first data input/output speed between the host and the memory system and a second data input/output speed between the controller and the plurality of memory dies.
 19. The operating method of claim 14, wherein the performing the correlation operation includes: skipping the correlation operation when the number of read requests received is less than the number of memory dies.
 20. The operating method of claim 14, wherein the performing the correlation operation includes: skipping the correlation operation on a first read request to a (n−1)th read request among the plurality of read requests; and performing the correlation operation on a n-th read request to a last read request among the plurality of read requests, wherein n is the number of channels.
 21. The operating method of claim 14, wherein the performing the correlation operation further includes: stopping the correlation operation on remaining read requests not yet correlated when the number of remaining read requests is less than the number of memory dies.
 22. The operating method of claim 14, wherein the performing the correlation operation includes: proceeding, stopping or skipping the correlation operation to the plurality of read requests based on the number of read requests; transferring a correlated read request earlier than an uncorrelated read request among the plurality of read requests; and storing a correlation rate of the correlation operation to determine at least one threshold used as a reference for determining whether to proceed, stop or skip the correlation based on the correlation rate, the number of channels and the number of memory dies.
 23. The operating method of claim 14, wherein the plurality of memory dies store data in a single-level cell (SLC) mode, a multi-level cell (MLC) mode, a triple-level cell (TLC) mode or a quad-level cell (QLC) mode.
 24. A memory system comprising: a plurality of memory dies including multiple storage blocks; a controller; and a plurality of channels coupled between the controller and the plurality of memory dies, wherein the controller is suitable for: receiving a plurality of read requests from a host; determining whether to perform a correlation operation on at least some of the plurality of read requests based on the number of read requests and an order in which the read requests are received; when it is determined that the correlation operation is to be performed, performing the correlation operation on select read requests, among the plurality of read requests, to generate correlated read requests; and transferring the correlated read requests to the same storage block among the multiple storage blocks through different channels. 